﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;

namespace Bordspil.Models
{
    public class AppDataContext : DbContext
    {
        public DbSet<GameInstance> GameInstance { get; set; }
        //fleiri model clasar == fleiri svona linur t.d ein lina per model clasa
        // public DbSet<GameBoard> GameBoard { get; set; }
        public DbSet<GameRanking> GameRanking { get; set; }
        public DbSet<Highscore> Highscore { get; set; }
        public DbSet<Group> Groups { get; set; }
        public DbSet<Chat> Chat { get; set; }
        public DbSet<Games> Games { get; set; }
        public DbSet<GroupMembers> GroupMembers { get; set; }
        public DbSet<UserProfile> UserProfile { get; set; }
        public DbSet<PlayerList> PlayerList { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }

    }
}